<?php

namespace app\admin\validate;

use think\Validate;

class Admin extends Validate
{
    //表单验证规则
    protected $rule = [
        'username'  =>  'require',
        'password'  =>  'require',
        'code'      =>  'require|captcha',
    ];


    //提示信息
    protected $message = [
        'username.require'  => '请输入用户名',
        'password.require'  => '请输入密码',
        'code.require'      => '请输入验证码',
        'code.captcha'      => '验证码不正确',
    ];

}
